<div class="grid_9">
<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>
<div class="inner-border">
<h6>Courses</h6>
	<div class="input-block">
		<table>
			<tbody class="tabular">
			<?if(!empty($db_entries)):?>
				<? foreach($db_entries as $courses):?>
					<div>
					<tr><td><?=$courses->course_code;?></td><td title="<?=$courses->course_desc;?>"><?=$courses->course_name;?></td> 
					<td><a href="<?php echo site_url('admin/edit_course/'.$courses->course_id)?>">Edit</a></td>
					  <td><a href="<?php echo site_url('post/delete_course/'.$courses->course_id)?>" class="del-btn" onClick='return delete_item("<?php echo $courses->course; ?>")'>Delete</a></td>
					</div>
				<? endforeach;?>
			<?else:?>
					<div>
					No Data Entries
					</div>
			<?endif;?>
			</tbody>
		</table>
	</div>
		
<a href="<?php echo site_url('admin/add_new_course') ?>" class="btn">New Course</a>
</div>
</div>
